package com.naughty.userlogin02.bean;

/*
 **@Author:刘淑钰
 **Created on 2021/12/27
 */

import java.util.List;

    public class Classg {
        private  String cid;
        private  String tid;
        private  String cname;
        private  Long  cnum;
        private List<Student> student;

        // 构造函数

        public Classg() {
        }

        public Classg(String cid, String tid, Long cnum, String cname, List<Student> student) {
            this.cid = cid;
            this.tid = tid;
            this.cnum = cnum;
            this.cname = cname;
            this.student = student;
        }

        // get and set 方法

        public String getCid() {
            return cid;
        }

        public void setCid(String cid) {
            this.cid = cid;
        }

        public String getTid() {
            return tid;
        }

        public void setTid(String tid) {
            this.tid = tid;
        }

        public Long getCnum() {
            return cnum;
        }

        public void setCnum(Long cnum) {
            this.cnum = cnum;
        }

        public String getCname() {
            return cname;
        }

        public void setCname(String cname) {
            this.cname = cname;
        }

        public List<Student> getStudent() {
            return student;
        }

        public void setStudent(List<Student> student) {
            this.student = student;
        }

        //to string方法
        @Override
        public String toString() {
            return "Class{" +
                    "cid='" + cid + '\'' +
                    ", tid='" + tid + '\'' +
                    ", cname='" + cname + '\'' +
                    ", cnum=" + cnum +
                    '}';
        }
    }

